/*
 * Logger.h
 *
 *  Created on: 16/09/2012
 *      Author: rodrigo
 */

#ifndef LOGGER_H_
#define LOGGER_H_
#define LOG_START Logger::initLog()
#define LOGUEAR(info,severity)   Logger::escribir(info,severity)
#define logfile Logger::archivo


#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <ctime>
#include <strings.h>
#include <sstream>

using namespace std;

class Logger {
	static FILE *archivo;

public:
	Logger();
	virtual ~Logger();
	static void initLog();
	static void escribir(string info, int severity);
	static string intToString(int number);
};

#endif /* LOGGER_H_ */
